package com.shop.publics.service.impl;

import com.shop.publics.model.Carousel;
import com.shop.publics.repository.CarouselRepository;
import com.shop.publics.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarouselServiceImpl implements CarouselService {
    @Autowired
    private CarouselRepository carouselRepository;
    @Override
    public List<Carousel> findAll() {
        return carouselRepository.findAll();
    }
}
